package com.biz.primus.ms.member.dao.ro;

import com.biz.primus.base.redis.annotation.FieldSortedSet;
import com.biz.primus.base.redis.annotation.Ro;
import com.biz.primus.base.redis.bean.BaseRedisObject;
import com.biz.primus.model.member.enums.AddressTypes;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 会员地址标签
 *
 * @author jun.liu
 * @date 2017年10月22日
 * @reviewer
 * @see
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Ro(key = "MemberAddressLabelRo")
public class MemberAddressLabelRo extends BaseRedisObject<Long>
{

    //标签名称
    private String labelName;

    /**
     * 关联会员详情Member对象
     */
    @FieldSortedSet(key = "memberId", score = "updateTimestamp")
    private Long memberId;

    /**
     * 标签类型
     */
    private AddressTypes labelType;


}
